<template>
	<view>
		<swiper class="mobile-swiper" circular :autoplay="mobileSwiper.autoplay" :vertical="mobileSwiper.vertical"
			:interval="mobileSwiper.interval" :duration="mobileSwiper.duration">
			<swiper-item class="swiper-item" v-for="(item,index) in mobileList" :key="index">
				<text>{{item.mobile}}</text>
				<text>{{item.tip}}</text>
				<text>{{item.time}}</text>
			</swiper-item>
		</swiper>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	const mobileSwiper = ref({
		autoplay: true,
		interval: 3000,
		duration: 1000,
		vertical: true,
	})

	const mobileList = ref([{
			mobile: '138****4845',
			tip: '成功免费领取联合会员',
			time: '一分钟前'
		},
		{
			mobile: '181****6012',
			tip: '成功免费领取联合会员',
			time: '三分钟前'
		},
		{
			mobile: '138****5023',
			tip: '成功免费领取联合会员',
			time: '五分钟前'
		},
	])
</script>

<style lang="scss" scoped>
	.mobile-swiper {
		height: 70rpx;
		padding: 0 34rpx;
		box-sizing: border-box;
		
		background: rgba(179,195,254,0.54);
		border-radius: 35rpx;
		border: 2px solid #FFFFFF;
		

		.swiper-item {
			display: flex;
			justify-content: space-between;
			align-items: center;

			font-family: Source Han Sans CN;
			font-weight: 400;
			font-size: 24rpx;
			color: #182D84;

		}
	}
</style>